<!--
 * @Author: kangchao kangchao@sxdata.com.cn
 * @Date: 2024-11-27 10:50:13
 * @LastEditors: kangchao kangchao@sxdata.com.cn
 * @LastEditTime: 2024-12-06 14:45:41
 * @FilePath: \vue-project\src\components\JsLibs\Index.vue
 * @Description: 
 * 
-->
<template>
  <a-card>
    <h2 class="mb-2">相关插件</h2>
    <div class="w-sm flex justify-between">
       <a-tooltip content="组织架构插件">
      <a-link @click="open('orgchart')">orgchart</a-link>
    </a-tooltip>
    </div>
    <plub-box :title="title" ref="plugRef" />
  </a-card>
</template>

<script setup>
import { ref } from 'vue'
import PlubBox from './PlubBox.vue'
const plugRef = ref(null)
const title = ref('')
const open = (type) => {
    title.value = type
    plugRef.value.open()
  }
</script>

<style lang="scss" scoped>
</style>